package com.sh.utils;


/**
 * @author luotao
 */
public class IdGeneratorUtil {

    private SnowFlake snowFlake;

    public IdGeneratorUtil(Long workId, Long dataCenterId) {
        this.snowFlake = new SnowFlake(workId, dataCenterId);
    }

    public Long generateId() {
        return this.snowFlake.nextId();
    }

}
